Path: api/v1/rfc/{rfcno}/stock
This API is JSON:API compliant.
This endpoint supports the following methods:
GET
This endpoint requires an OAuth bearer token, and returns errors in a standard shape. See API Conventions for authentication, error responses and paging, which apply to every endpoint.
The resource type for this endpoint is RFCStock
The identifier is rfcno-lineid
Attributes
The RFCStock resource type attributes are as follows:
| Attribute | Type | Description |
|---|---|---|
| adddate | string (DateTime in ISO format) | The date and time the stock line was added. |
| addinit | string | The initials of the user who added the stock line. |
| configNo | integer | Stock attribute configuration number. |
| description | string | The stock description. Only required if the default stock description needs to be overrridden. It is recommended this be set for special stock. |
| jobLineId | Nullable`1 | The job line this return line relates to. |
| jobNo | integer | The job number this return line relates to. |
| modifydate | string (DateTime in ISO format) | The date and time the stock line was last modified. |
| modifyinit | string | The initials of the user who last modified the stock line. |
| packId | integer | The pack this return line belongs to. |
| qtyRet | number | The quantity being returned for credit. |
| sJobNo | integer | The source job number this return line relates to. |
| stockCode | string | The Jim2 stock code |
| stockId | integer | The Jim2 stock number of the line's stock item. |
| transfLocNo | Nullable`1 | The transfer location for the return line. |
| unit | string | The unit of measure for the stock line. |
| unitPriceTF | number | The unit price exclusive of tax. |
| unitPriceTP | number | The unit price inclusive of tax. |
Path: api/v1/rfc/10/stock Response: This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response. This is a list. To keep the example readable, only the first item below is written out; the later items have been trimmed down in this documentation. In a real response each item comes back with the data applicable to that record (as described above). Side-loading related resources with the include query parameter is not supported on list endpoints: an include parameter is ignored here and no included section is returned. To retrieve a related resource, request it directly using the id shown in each item's relationships, or use the single-resource (get by id) endpoint, which does support include.
Example GET (Return all)
{
"data": [
{
"id": "10-1",
"type": "RFCStock",
"attributes": {
"qtyRet": 2.0,
"unitPriceTF": 20.0,
"unitPriceTP": 22.0,
"jobNo": 105,
"jobLineId": 1,
"sJobNo": 106,
"packId": 12,
"transfLocNo": 1,
"configNo": 4501,
"addinit": "API",
"adddate": "2025-11-24T09:15:00",
"stockId": 3,
"stockCode": "SAMSUNG.MON.CONNECT",
"unit": "EACH",
"description": "Samsung Monitor Connector.",
"modifyinit": "API",
"modifydate": "2025-11-24T09:15:00"
},
"links": {
"self": "/api/v1/rfc/10/stock/10-1"
}
},
{
"id": "10-2",
"type": "RFCStock",
"attributes": {
"stockCode": "MOUSE",
"qtyRet": 1.0
}
}
]
}
Path: api/v1/rfc/10/stock/10-1 Response: This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.
Example GET (Return specific)
{
"data": {
"id": "10-1",
"type": "RFCStock",
"attributes": {
"qtyRet": 2.0,
"unitPriceTF": 20.0,
"unitPriceTP": 22.0,
"jobNo": 105,
"jobLineId": 1,
"sJobNo": 106,
"packId": 12,
"transfLocNo": 1,
"configNo": 4501,
"addinit": "API",
"adddate": "2025-11-24T09:15:00",
"stockId": 3,
"stockCode": "SAMSUNG.MON.CONNECT",
"unit": "EACH",
"description": "Samsung Monitor Connector.",
"modifyinit": "API",
"modifydate": "2025-11-24T09:15:00"
},
"links": {
"self": "/api/v1/rfc/10/stock/10-1"
}
}
}